﻿using System.Web.Http;
using System.Net.Http;
using System;

namespace Inovout.Web.Http
{
    public abstract class BaseController : ApiController
    {
         protected TService GetService<TService>()
        {
            return (TService)GetServic(typeof(TService));
         }
         private object GetServic(Type serviceType)
         {
             return this.Request.GetDependencyScope().GetService(serviceType);
     
         }
   
    }
}
